package com.googlecode.pwlodars.piteststat.writer.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.googlecode.pwlodars.piteststat.filesystembridge.TextResourcesConnector;
import com.googlecode.pwlodars.piteststat.writer.content.PitResultsFilesReader;
import com.googlecode.pwlodars.piteststat.writer.content.PitestResultFilesParser;
import com.googlecode.pwlodars.piteststat.writer.run.ParametersResolver;

@Configuration
public class WriterConfig {

	@Bean
	public PitestResultFilesParser pitestResultFilesParser() {
		return new PitestResultFilesParser();
	}

	@Bean
	public ParametersResolver parametersResolver() {
		return new ParametersResolver();
	}
	
	@Bean
	@Autowired
	public PitResultsFilesReader pitResultsFilesReader(TextResourcesConnector textResourcesConnector){
		return new PitResultsFilesReader(textResourcesConnector);
	}

}
